﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DrugStore.Models;

namespace DrugStore.Controllers
{
    public class ExaminationController : Controller
    {
        //
        // GET: /Examination/

        public ActionResult Index()
        {
            var _sex = new String[]
            {
                "Nam",
                "Nữ"
            };
            
            ExaminationModel model = new ExaminationModel();
            ViewData["Sex"] = new SelectList(_sex, model.Sex);
            return View(model);
        }
        
        //
        //POST: /Examination/
        [HttpPost]
        public ActionResult Index(ExaminationModel examination) 
        {
            String selection = Request["Thetrang"];
            var _sex = new String[]
            {
                "Nam",
                "Nữ"
            };

            ExaminationModel model = new ExaminationModel();
            ViewData["Sex"] = new SelectList(_sex, model.Sex);

            return View(model);
        }

    }
}
